package com.wutuo.tag.provider.dao;

import com.wutuo.tag.api.request.TagRequest;
import com.wutuo.tag.api.response.TagResponse;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;

public interface TagMapper extends BaseTagMapper {
    @SelectProvider(type = TagSqlProvider.class, method = "list")
    @ResultType(value = TagResponse.class) List<TagResponse> list(TagRequest request);

    @SelectProvider(type = TagSqlProvider.class, method = "listByUserId")
    @ResultType(value = TagResponse.class) List<TagResponse> listByUserId(TagRequest request);
}